<template>
  <div class="charts" ref="charts">

  </div>
</template>

<script>
import * as echarts from 'echarts';
export default {
  name: 'BarChart',
  mounted() {
    let lineCharts = echarts.init(this.$refs.charts)
    let options = {
      xAxis: {
        show: false,
        type: 'category'
      },
      yAxis: {
        show: false
      },
      series: [
        {
          data: [77, 10, 33, 88, 15, 47, 67, 12, 56, 10, 39, 11],
          type: 'bar',
          color: 'cyan'
        },

      ],
      grid: {
        left: 0,
        right: 0,
        top: 0,
        bottom: 0,
      },
      tooltip: {}

    }

    lineCharts.setOption(options)


  },

}
</script>

<style scoped>
.charts {
  width: 100%;
  height: 100%;

}
</style>
